From fb579942018fafcf8c6cec04d116b9a4c5e990cd Mon Sep 17 00:00:00 2001 From: George Dunlap Date: Thu, 25 Feb 2016 14:48:56 +0000 Subject: [PATCH] tools/xenalyze: Close symbol_file after reading it ...to avoid leaking the FD and associated memory. CID 1306872 Signed-off-by: George Dunlap Acked-by: Ian Jackson --- tools/xentrace/xenalyze.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index 1651302099..3c90a0f5d7 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -363,6 +363,8 @@ void parse_symbol_file(char *fn) { p=&((*p)->next); } } + + fclose(symbol_file); } /* WARNING not thread safe */ -- 2.30.2